(display_text_line): Highlight in any frame's sel window.
authorRichard M. Stallman <rms@gnu.org>
Sat, 22 May 1993 22:06:48 +0000 (22:06 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 22 May 1993 22:06:48 +0000 (22:06 +0000)
(display_text_line): Highlight only in selected window.

src/xdisp.c

index b991aeb580511c143c6760927e9f662a5f317948..e72ca03208328f498af222d11ef063cffced5000 100644 (file)
@@ -1723,7 +1723,9 @@ display_text_line (w, start, vpos, hpos, taboffset)
   if (tab_width <= 0 || tab_width > 1000) tab_width = 8;
 
   /* Show where to highlight the region.  */
-  if (highlight_region && XMARKER (current_buffer->mark)->buffer != 0)
+  if (highlight_region && XMARKER (current_buffer->mark)->buffer != 0
+      /* Highlight only in selected window.  */
+      && w == XWINDOW (FRAME_SELECTED_WINDOW (f)))
     {
       region_beg = marker_position (current_buffer->mark);
       if (PT < region_beg)